package com.jd.oneday.month3;

import java.util.Scanner;

/**
 * @author liuyupeng11
 */
public class Day01_Test {


    public static void main(String[] args) {

        Scanner c = new Scanner(System.in);


        Day01_MyArray<String> array = new Day01_MyArray<>();

        int i = 0;
        System.out.println("***");
        while (true){
            String s = c.nextLine();
            array.add(i,s);
            i++;

            if (s.equals("0")){
                break;
            }
        }
        System.out.println(array.toString());
    }
}
